package com.hk.common.ret;


import lombok.Getter;

@Getter
public enum RetCode {

    SUCCESS(200,"success"),

    FAIL(400,"fail"),

    UNAUTHORIZED(401,"unauthorized"),

    NOT_FOUND(404,"not found this page"),

    INTERNAL_SERVER_ERROR(500,"internal server error"),

    //业务状态码
    NOT_FOUND_USERNOT_FOUND_USER(1001,"dont find any User"),//不能找到任何一个用户

    USER_EXISTED_USER(1002,"A user already exists");//用户已存在

    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
